/**
 * author: XGP
 * date: 2018/08/08
 * des: 节假日管理
 *
 */

export const addSetting = [
  {
    field: 'solarDate',
    title: '日期',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'isHolidayDay',
    title: '类型',
    customText: this.formatCertType,
    type: 'radio',
    optional: [
      {
        name: '节假日',
        value: '1'
      },
      {
        name: '工作日',
        value: '2'
      }
    ]
  },
  {
    field: 'holidayDesc',
    title: '假日名称',
    type: 'text',
    showEditSituation: (form) => {
      if (form.isHolidayDay == '1') {
        return true
      } else {
        return false
      }
    }
  }
]
